Skip to content

A release check still running is a wait, never a refused model - #983

Merged
coderhelm[bot] merged 2 commits into
mainfrom
model-check-pending-not-refused
Dec 5, 2026
Merged

coderhelm[bot] merged 2 commits into
mainfrom
model-check-pending-not-refused

Conversation

@nambok

@nambok nambok commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

A release whose signature was still being checked had a pending model check, and the hourly check said "a model this release calls was refused; checking again daily" minutes before the check passed. A check still running, a check that didn't finish and a refused model now each have their own reason, and only a refused model is told to the admins.

Changes

  • check_hold(record, version) returns the kind and reason: pending ("waiting for the release check; trying again next hour"), stalled ("the release check didn't finish; starting it again, trying again next hour") or refused (the reason as before). blocking() is kept as a yes or no over it.
  • decide() and the step before applying give that reason, and its kind as check on the decision. A stored stalled check is started again by the next hourly check, and the decision says so.
  • notify_blocked() never tells a check that is pending or didn't finish. A refused model is still emailed once.
  • Pending then verified: the next hourly check installs (it already ran the check again every hour while pending; now it also says it is waiting rather than refused).
  • Docs: the model check section of docs/self-host/updates.md. Incident case xv_pending_check_is_a_wait.

Verification

  • python3 -m unittest discover -s lambda/tests: 676 pass. New test_updater_check_pending.py: the three reasons are distinct and neither wait reads as a refusal; decide() gives each its own reason; notify_blocked() sends nothing for a wait; a pending check sends no notice and the next hourly check installs once it has passed; a stalled check is started again and says so; a refused model is told once.
  • python3 -m unittest discover -s .github/scripts: 222 pass. check_workflows.py and brand_spelling.py pass.
  • cargo test -p worker -- incidents::: 974 passed, including the new case.

The hourly check and the step before applying asked blocking(), true for
a check still running, a check that didn't finish and a refused model
alike, and both gave "a model this release calls was refused; checking
again daily", even minutes before the check passed.

- check_hold tells the three apart: pending ("waiting for the release
  check; trying again next hour"), stalled (started again by the next
  hourly check, which says so) and refused (the reason as before). decide
  and the step before applying return the reason and its kind as `check`.
- notify_blocked never tells a check that is pending or didn't finish;
  a refused model is still told once.
- The next hourly check installs once the check has passed.
- Docs: the model check section of updates.md. Incident case xv.
- Tests: the three reasons are distinct; no notice for a wait; pending
  then verified installs at the next hourly check; a stalled check is
  started again; a refused model is told once.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 5, 2026

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved 1080891 (merged)

@coderhelm

coderhelm Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of 6170207 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

@coderhelm
coderhelm Bot merged commit 6170207 into main Dec 5, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant